<?php

namespace App\Admin\Controllers;

use App\Http\Controllers\Controller;
use App\Repositories\PatentFeeRepository;
use App\Services\PatentFeeService;
use Encore\Admin\Facades\Admin;
use Encore\Admin\Layout\Content;

class PatentFeeController extends Controller
{
    /**
     * Title for current resource.
     *
     * @var string
     */
    protected $title = '年费监控';
    public $repository;
    protected $service;

    public function __construct(PatentFeeRepository $repository, PatentFeeService $service)
    {
        $this->repository = $repository;
        $this->service = $service;
    }

    public function index(Content $content)
    {
        $grid = $this->repository->siteGrid(1);
        $this->service->gridColumn($grid);
        return $content
            ->title($this->title)
            ->description(' ')
            ->body($grid);
    }
}
